.class public Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;
.super Landroid/widget/ResourceCursorAdapter;
.source "ListModeNewActivity.java"

# interfaces
.implements Lcom/htc/widget/HtcAdapterView$OnItemClickListener;
.implements Lcom/htc/widget/HtcAdapterView$OnItemLongClickListener;
.implements Lcom/htc/widget/HtcAbsListView$RecyclerListener;
.implements Landroid/widget/SectionIndexer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/ListModeNewActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "ListModeAdapter"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;
    }
.end annotation


# instance fields
.field private columnIndexDate:I

.field private columnIndexName:I

.field private columnIndexTime:I

.field private firstTime:Z

.field imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

.field private lastSectionString:Ljava/lang/String;

.field private positionIndex:I

.field private sectionIndex2PositionIndex:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private sectionList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

.field timeFormatter:Ljava/text/SimpleDateFormat;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/content/Context;ILandroid/database/Cursor;)V
    .locals 2
    .parameter
    .parameter "context"
    .parameter "resource"
    .parameter "cursor"

    .prologue
    .line 1034
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    .line 1035
    invoke-direct {p0, p2, p3, p4}, Landroid/widget/ResourceCursorAdapter;-><init>(Landroid/content/Context;ILandroid/database/Cursor;)V

    .line 1021
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    .line 1028
    const-string v0, ""

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 1029
    const/4 v0, 0x0

    iput v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    .line 1030
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    .line 1031
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    .line 1032
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->firstTime:Z

    .line 1036
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "MM/dd/yy"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    .line 1037
    const-string v0, "create_time"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexTime:I

    .line 1038
    const-string v0, "name"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexName:I

    .line 1039
    const-string v0, "short_date"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexDate:I

    .line 1040
    return-void
.end method

.method private createReturnIntent(I)Landroid/content/Intent;
    .locals 10
    .parameter "position"

    .prologue
    const-wide v8, 0x412e848000000000L

    .line 1306
    invoke-virtual {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    .line 1307
    .local v0, data:Lcom/htc/android/footprints/vo/Footprint;
    iget v6, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    int-to-double v6, v6

    div-double v1, v6, v8

    .line 1308
    .local v1, lat:D
    iget v6, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    int-to-double v6, v6

    div-double v3, v6, v8

    .line 1309
    .local v3, log:D
    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    .line 1310
    .local v5, pickerResult:Landroid/content/Intent;
    const-string v6, "RETURN_LATITUDE"

    invoke-virtual {v5, v6, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    .line 1311
    const-string v6, "RETURN_LONGITUDE"

    invoke-virtual {v5, v6, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    .line 1312
    const-string v6, "RETURN_LATITUDE_TEXT"

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v6, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1313
    const-string v6, "RETURN_LONGITUDE_TEXT"

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v6, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1314
    return-object v5
.end method

.method private updateSections(Landroid/database/Cursor;)V
    .locals 9
    .parameter "cursor"

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 1328
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcListView;->setFastScrollSectionsDirty()V

    .line 1329
    const-string v4, ""

    iput-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 1330
    iput v7, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    .line 1331
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->clear()V

    .line 1332
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-interface {v4}, Ljava/util/Map;->clear()V

    .line 1333
    iput-boolean v8, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->firstTime:Z

    .line 1334
    if-eqz p1, :cond_5

    .line 1335
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I
    invoke-static {v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1300(Lcom/htc/android/footprints/activity/ListModeNewActivity;)I

    move-result v4

    if-ne v4, v8, :cond_2

    .line 1338
    :goto_0
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->moveToPosition(I)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 1339
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexDate:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1340
    .local v3, time:Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 1341
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexTime:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    .line 1342
    .local v0, epoch:J
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    new-instance v5, Ljava/util/Date;

    invoke-direct {v5, v0, v1}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v4, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    .line 1344
    .end local v0           #epoch:J
    :cond_0
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 1345
    iput-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 1346
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iget v6, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1347
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1349
    :cond_1
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    goto :goto_0

    .line 1353
    .end local v3           #time:Ljava/lang/String;
    :cond_2
    :goto_1
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->moveToPosition(I)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 1354
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->columnIndexName:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 1355
    .local v2, name:Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_3

    .line 1356
    iget-boolean v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->firstTime:Z

    if-nez v4, :cond_4

    .line 1357
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_3

    .line 1358
    invoke-virtual {v2, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 1359
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 1360
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iget v6, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1361
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1371
    :cond_3
    :goto_2
    iget v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->positionIndex:I

    goto :goto_1

    .line 1364
    :cond_4
    iput-boolean v7, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->firstTime:Z

    .line 1365
    invoke-virtual {v2, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 1366
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 1367
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1368
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 1375
    .end local v2           #name:Ljava/lang/String;
    :cond_5
    return-void
.end method


# virtual methods
.method public bindView(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V
    .locals 22
    .parameter "view"
    .parameter "context"
    .parameter "cursor"

    .prologue
    .line 1044
    invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;

    .line 1046
    .local v9, holder:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;
    new-instance v8, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v8}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 1048
    .local v8, footprint:Lcom/htc/android/footprints/vo/Footprint;
    move-object v0, v8

    move-object/from16 v1, p3

    invoke-static {v0, v1}, Lcom/htc/android/footprints/provider/FootprintManager;->fillDataFromCursor(Lcom/htc/android/footprints/vo/Footprint;Landroid/database/Cursor;)V

    .line 1050
    const/4 v7, 0x0

    .line 1053
    .local v7, drawable:Landroid/graphics/drawable/Drawable;
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getWidth()I

    move-result v17

    if-eqz v17, :cond_0

    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getHeight()I

    move-result v17

    if-nez v17, :cond_2

    .line 1055
    :cond_0
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v15

    .line 1056
    .local v15, lp:Landroid/view/ViewGroup$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-object/from16 v17, v0

    const-string v18, "ListModeActivity"

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object v0, v15

    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    move/from16 v20, v0

    move-object v0, v15

    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    move/from16 v21, v0

    invoke-virtual/range {v17 .. v21}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledFastImage(Ljava/lang/String;Ljava/lang/String;II)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    .line 1066
    .end local v15           #lp:Landroid/view/ViewGroup$LayoutParams;
    :goto_0
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v7

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1069
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mShortDate:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-static/range {v17 .. v17}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v17

    if-nez v17, :cond_3

    .line 1070
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->time:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mShortDate:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1082
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    move-object/from16 v17, v0

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;
    invoke-static/range {v17 .. v17}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$900(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v11

    .line 1083
    .local v11, input:Ljava/lang/CharSequence;
    invoke-interface {v11}, Ljava/lang/CharSequence;->length()I

    move-result v14

    .line 1084
    .local v14, length:I
    invoke-virtual {v11}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v12

    .line 1085
    .local v12, inputLowerCase:Ljava/lang/String;
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    if-eqz v17, :cond_7

    .line 1086
    if-lez v14, :cond_6

    .line 1087
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v16

    .line 1088
    .local v16, nameLowerCase:Ljava/lang/String;
    new-instance v6, Landroid/text/SpannableString;

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    move-object v0, v6

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 1089
    .local v6, displayString:Landroid/text/SpannableString;
    move-object/from16 v0, v16

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_1

    .line 1090
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const/16 v18, -0x72ed

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 1094
    :cond_1
    const/4 v10, -0x1

    .line 1095
    .local v10, index:I
    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, " "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 1096
    .local v13, keyword:Ljava/lang/String;
    :goto_2
    add-int/lit8 v17, v10, 0x1

    move-object/from16 v0, v16

    move-object v1, v13

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v10

    const/16 v17, -0x1

    move v0, v10

    move/from16 v1, v17

    if-le v0, v1, :cond_4

    .line 1097
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const/16 v18, -0x72ed

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v10, 0x1

    add-int v19, v14, v10

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    goto :goto_2

    .line 1059
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v10           #index:I
    .end local v11           #input:Ljava/lang/CharSequence;
    .end local v12           #inputLowerCase:Ljava/lang/String;
    .end local v13           #keyword:Ljava/lang/String;
    .end local v14           #length:I
    .end local v16           #nameLowerCase:Ljava/lang/String;
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-object/from16 v17, v0

    const-string v18, "ListModeActivity"

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Landroid/widget/ImageView;->getWidth()I

    move-result v20

    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Landroid/widget/ImageView;->getHeight()I

    move-result v21

    invoke-virtual/range {v17 .. v21}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledFastImage(Ljava/lang/String;Ljava/lang/String;II)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    goto/16 :goto_0

    .line 1072
    :cond_3
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->time:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    move-object/from16 v18, v0

    new-instance v19, Ljava/util/Date;

    move-object v0, v8

    iget-wide v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    move-wide/from16 v20, v0

    invoke-direct/range {v19 .. v21}, Ljava/util/Date;-><init>(J)V

    invoke-virtual/range {v18 .. v19}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    .line 1100
    .restart local v6       #displayString:Landroid/text/SpannableString;
    .restart local v10       #index:I
    .restart local v11       #input:Ljava/lang/CharSequence;
    .restart local v12       #inputLowerCase:Ljava/lang/String;
    .restart local v13       #keyword:Ljava/lang/String;
    .restart local v14       #length:I
    .restart local v16       #nameLowerCase:Ljava/lang/String;
    :cond_4
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->title:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v6

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1108
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v10           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    .end local v16           #nameLowerCase:Ljava/lang/String;
    :goto_3
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    if-eqz v17, :cond_a

    .line 1109
    if-lez v14, :cond_9

    .line 1110
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    .line 1111
    .local v5, addressLowerCase:Ljava/lang/String;
    new-instance v6, Landroid/text/SpannableString;

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    move-object v0, v6

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 1112
    .restart local v6       #displayString:Landroid/text/SpannableString;
    invoke-virtual {v5, v12}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_5

    .line 1113
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const/16 v18, -0x72ed

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 1117
    :cond_5
    const/4 v10, -0x1

    .line 1118
    .restart local v10       #index:I
    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, " "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 1119
    .restart local v13       #keyword:Ljava/lang/String;
    :goto_4
    add-int/lit8 v17, v10, 0x1

    move-object v0, v5

    move-object v1, v13

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v10

    const/16 v17, -0x1

    move v0, v10

    move/from16 v1, v17

    if-le v0, v1, :cond_8

    .line 1120
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const/16 v18, -0x72ed

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v10, 0x1

    add-int v19, v14, v10

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    goto :goto_4

    .line 1102
    .end local v5           #addressLowerCase:Ljava/lang/String;
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v10           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    :cond_6
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->title:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 1105
    :cond_7
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->title:Landroid/widget/TextView;

    move-object/from16 v17, v0

    const-string v18, ""

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 1123
    .restart local v5       #addressLowerCase:Ljava/lang/String;
    .restart local v6       #displayString:Landroid/text/SpannableString;
    .restart local v10       #index:I
    .restart local v13       #keyword:Ljava/lang/String;
    :cond_8
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v6

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1130
    .end local v5           #addressLowerCase:Ljava/lang/String;
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v10           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    :goto_5
    return-void

    .line 1125
    :cond_9
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_5

    .line 1128
    :cond_a
    move-object v0, v9

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    const-string v18, ""

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_5
.end method

.method public changeCursor(Landroid/database/Cursor;)V
    .locals 0
    .parameter "cursor"

    .prologue
    .line 1319
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->updateSections(Landroid/database/Cursor;)V

    .line 1320
    invoke-super {p0, p1}, Landroid/widget/ResourceCursorAdapter;->changeCursor(Landroid/database/Cursor;)V

    .line 1321
    return-void
.end method

.method public getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;
    .locals 3
    .parameter "position"

    .prologue
    .line 1160
    invoke-virtual {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    .line 1161
    .local v0, cur:Landroid/database/Cursor;
    if-eqz v0, :cond_0

    .line 1162
    new-instance v1, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v1}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 1163
    .local v1, f:Lcom/htc/android/footprints/vo/Footprint;
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCursor()Landroid/database/Cursor;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->fillDataFromCursor(Lcom/htc/android/footprints/vo/Footprint;Landroid/database/Cursor;)V

    move-object v2, v1

    .line 1166
    .end local v1           #f:Lcom/htc/android/footprints/vo/Footprint;
    :goto_0
    return-object v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public getFootprints()[Lcom/htc/android/footprints/vo/Footprint;
    .locals 3

    .prologue
    .line 1150
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCount()I

    move-result v2

    new-array v1, v2, [Lcom/htc/android/footprints/vo/Footprint;

    .line 1152
    .local v1, result:[Lcom/htc/android/footprints/vo/Footprint;
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    array-length v2, v1

    if-ge v0, v2, :cond_0

    .line 1153
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    aput-object v2, v1, v0

    .line 1152
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 1156
    :cond_0
    return-object v1
.end method

.method public getPositionForSection(I)I
    .locals 5
    .parameter "section"

    .prologue
    .line 1379
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .local v1, positionIndex:I
    move v2, v1

    .line 1386
    .end local v1           #positionIndex:I
    :goto_0
    return v2

    .line 1384
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 1385
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "ListModeActivity"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "getPositionForSection() error: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1386
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public getSectionForPosition(I)I
    .locals 1
    .parameter "position"

    .prologue
    .line 1391
    const/4 v0, 0x0

    return v0
.end method

.method public getSections()[Ljava/lang/Object;
    .locals 3

    .prologue
    .line 1395
    const/4 v0, 0x0

    .line 1396
    .local v0, sections:[Ljava/lang/Object;
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 1398
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->toArray()[Ljava/lang/Object;

    move-result-object v0

    .line 1402
    :goto_0
    return-object v0

    .line 1400
    :cond_0
    const/4 v1, 0x1

    new-array v0, v1, [Ljava/lang/String;

    .end local v0           #sections:[Ljava/lang/Object;
    const/4 v1, 0x0

    const-string v2, " "

    aput-object v2, v0, v1

    .restart local v0       #sections:[Ljava/lang/Object;
    goto :goto_0
.end method

.method public newView(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter "context"
    .parameter "cursor"
    .parameter "viewgroup"

    .prologue
    .line 1134
    invoke-super {p0, p1, p2, p3}, Landroid/widget/ResourceCursorAdapter;->newView(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 1135
    .local v1, view:Landroid/view/View;
    new-instance v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;

    const/4 v2, 0x0

    invoke-direct {v0, p0, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;Lcom/htc/android/footprints/activity/ListModeNewActivity$1;)V

    .line 1136
    .local v0, holder:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;
    const v2, 0x7f0c0023

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/ImageView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    .line 1138
    const v2, 0x7f0c0024

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->title:Landroid/widget/TextView;

    .line 1139
    const v2, 0x7f0c0025

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->address:Landroid/widget/TextView;

    .line 1141
    const v2, 0x7f0c0026

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->time:Landroid/widget/TextView;

    .line 1145
    invoke-virtual {v1, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 1146
    return-object v1
.end method

.method public onItemClick(Lcom/htc/widget/HtcAdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/htc/widget/HtcAdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, arg0:Lcom/htc/widget/HtcAdapterView;,"Lcom/htc/widget/HtcAdapterView<*>;"
    const/4 v2, 0x1

    .line 1275
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$200(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1276
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/4 v2, -0x1

    invoke-direct {p0, p3}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->createReturnIntent(I)Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->setResult(ILandroid/content/Intent;)V

    .line 1277
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->finish()V

    .line 1293
    :goto_0
    return-void

    .line 1279
    :cond_0
    if-eqz p3, :cond_1

    .line 1280
    sub-int/2addr p3, v2

    .line 1281
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.htc.android.footprints.activity.DetailViewActivity"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1284
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "DATA"

    invoke-virtual {p0, p3}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 1285
    const-string v1, "EXTRA_SORT_BY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1286
    const-string v1, "EXTRA_CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$800(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1287
    const-string v1, "EXTRA_ITEM_IDX"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1288
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v1, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 1290
    .end local v0           #intent:Landroid/content/Intent;
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startCameraActivity(Z)V

    goto :goto_0
.end method

.method public onItemLongClick(Lcom/htc/widget/HtcAdapterView;Landroid/view/View;IJ)Z
    .locals 3
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/htc/widget/HtcAdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)Z"
        }
    .end annotation

    .prologue
    .local p1, arg0:Lcom/htc/widget/HtcAdapterView;,"Lcom/htc/widget/HtcAdapterView<*>;"
    const/4 v2, 0x1

    .line 1297
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$200(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Z

    move-result v0

    if-nez v0, :cond_0

    if-eqz p3, :cond_0

    .line 1298
    sub-int/2addr p3, v2

    .line 1299
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {p0, p3}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1402(Lcom/htc/android/footprints/activity/ListModeNewActivity;Lcom/htc/android/footprints/vo/Footprint;)Lcom/htc/android/footprints/vo/Footprint;

    .line 1300
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    .line 1302
    :cond_0
    return v2
.end method

.method public onMovedToScrapHeap(Landroid/view/View;)V
    .locals 3
    .parameter "scrapView"

    .prologue
    .line 1201
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;

    .line 1202
    .local v0, holder:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;
    iget-object v1, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter$ItemViewHolder;->iconView:Landroid/widget/ImageView;

    .line 1203
    .local v1, icon:Landroid/widget/ImageView;
    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1205
    return-void
.end method

.method public runQueryOnBackgroundThread(Ljava/lang/CharSequence;)Landroid/database/Cursor;
    .locals 9
    .parameter "constraint"

    .prologue
    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 1174
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFilterQueryProvider()Landroid/widget/FilterQueryProvider;

    move-result-object v4

    if-eqz v4, :cond_0

    .line 1175
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFilterQueryProvider()Landroid/widget/FilterQueryProvider;

    move-result-object v4

    invoke-interface {v4, p1}, Landroid/widget/FilterQueryProvider;->runQuery(Ljava/lang/CharSequence;)Landroid/database/Cursor;

    move-result-object v4

    .line 1197
    :goto_0
    return-object v4

    .line 1177
    :cond_0
    if-nez p1, :cond_1

    .line 1178
    const-string p1, ""

    .line 1181
    :cond_1
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 1183
    .local v0, argStr:[Ljava/lang/String;
    const-string v1, ""

    .line 1184
    .local v1, category:Ljava/lang/String;
    const-string v2, ""

    .line 1185
    .local v2, keyword:Ljava/lang/String;
    const-string v3, ""

    .line 1186
    .local v3, sortBy:Ljava/lang/String;
    array-length v4, v0

    if-ne v4, v7, :cond_2

    .line 1187
    aget-object v1, v0, v6

    .line 1197
    :goto_1
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;
    invoke-static {v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$500(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v4

    invoke-virtual {v4, v1, v2, v3}, Lcom/htc/android/footprints/provider/FootprintManager;->getCursorSortBy(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    goto :goto_0

    .line 1188
    :cond_2
    array-length v4, v0

    if-ne v4, v8, :cond_3

    .line 1189
    aget-object v1, v0, v6

    .line 1190
    aget-object v2, v0, v7

    goto :goto_1

    .line 1192
    :cond_3
    aget-object v1, v0, v6

    .line 1193
    aget-object v2, v0, v7

    .line 1194
    aget-object v3, v0, v8

    goto :goto_1
.end method

.method public updateSections()V
    .locals 1

    .prologue
    .line 1324
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCursor()Landroid/database/Cursor;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->updateSections(Landroid/database/Cursor;)V

    .line 1325
    return-void
.end method
